package com.lanou3g.ptp.approval.mapper;

import com.lanou3g.ptp.entity.Approval;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ApprovalMapper {
    int approvalById(@Param("id") Long id,
                     @Param("type") int type,
                     @Param("approval")String approval,
                     @Param("starth")Date start,
                     @Param("photo")String photo,
                     @Param("overh")Date over,
                     @Param("creates")Date create);

    Approval ById(Long id);

    List<Approval> findAll();

    int upStatus(@Param("id") Long id,@Param("name")String name,@Param("date")Date date, @Param("i") int i);

    List<Approval> findByStudentId(Long studentId);
}
